package com.weetop.cfw.bean;

import com.stx.xhb.xbanner.entity.SimpleBannerInfo;
import com.weetop.cfw.constants.UrlConstants;

import java.util.List;

public class AdvertisementBean extends ErrorBean {


    private List<DataBean> data;

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "AdvertisementBean{" +
                "data=" + data +
                '}';
    }

    public static class DataBean extends SimpleBannerInfo {
        /**
         * title : banner adv
         * desc :
         * link : http://www.baidu.com
         * imgurl : /Upload/image/202004/20200411125547_7533.jpg
         */

        private String title;
        private String desc;
        private String link;
        private String imgurl;
        private int infoid;
        private int isjump;

        public int getIsJump() {
            return isjump;
        }

        public void setIsJump(int isJump) {
            isjump = isJump;
        }


        public int getInfoid() {
            return infoid;
        }

        public void setInfoid(int infoid) {
            this.infoid = infoid;
        }
        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public String getLink() {
            return link;
        }

        public void setLink(String link) {
            this.link = link;
        }

        public String getImgurl() {
            return imgurl;
        }

        public void setImgurl(String imgurl) {
            this.imgurl = imgurl;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "title='" + title + '\'' +
                    ", desc='" + desc + '\'' +
                    ", link='" + link + '\'' +
                    ", imgurl='" + imgurl + '\'' +
                    '}';
        }

        @Override
        public String getXBannerUrl() {
            return UrlConstants.baseUrl + getImgurl();
        }
    }
}
